
/**
 *
 * @param {*} file
 * @param {*} hash
 */
var FileObject = function (file, hash) {
  this.name = encodeURIComponent(file.name);
  this.hash = hash;
  this.size = file.size;
  this.fkey =hash + "@" + this.name.replace(/@/g, "_") ;
};

/**
 *
 * @param {*} fileobj
 * @param {*} index
 * @param {*} size
 * @param {*} hash
 */
var ChunkObject = function (fileobj, index, total, size, hash) {
  this.fkey = fileobj.fkey;
  this.index = index;
  this.total = total;
  this.size = size;
  this.hash = hash;
};
